We have configured the password however we have disable the login on telnet lines by using no login command.
No login command disable the authentication requirement on the telnet lines.

Use login command under vty lines to solve the issue.